import {
    Form,
    Button,
    Radio,
    RadioGroup,
    Checkbox,
    NavBar,
    Toast,
    Dialog,
    Popup,
    Uploader,
    Image as VanImage,
    ActionSheet,
} from "vant";

import { App } from "vue";

const Vant = {
    install: (app: App): void => {
        app.use(Form)
            .use(Button)
            .use(Radio)
            .use(RadioGroup)
            .use(NavBar)
            .use(Toast)
            .use(Dialog)
            .use(Popup)
            .use(Uploader)
            .use(VanImage)
            .use(ActionSheet)
            .use(Checkbox);
    },
};

export default Vant;
